package models;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.OneToMany;

import play.data.validation.MaxSize;
import play.db.jpa.Model;

/**
 * @author islam
 * 
 * Une classe pour le modele de la ville
 */

@Entity
public class Message extends Model {

	public String subject;
	
	@MaxSize(3000)
	public String text;

	public Message(String text, String subject) {
		this.text = text;
		this.subject = subject;
	}

	@Override
	public String toString() {
		return subject;
	}

}
